package com.es.www.second;

import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

import com.es.www.second.constant.HandlerConstant;

/**
 * @Created by michangtao
 * @Date 2022/5/25 10:07
 * @Description
 */
@Setter
public abstract class AbstractHandler implements HandlerConstant {

    protected String name;

    public static Map<String, Object> processMap = new HashMap<>();

    public AbstractHandler(String name) {
        this.name = name;
    }

    protected  AbstractHandler prevHandler;

    protected AbstractHandler nextHandler;

    public abstract void process();

}
